﻿using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace XiuxianGame.运行时资源.事件方法
{
    internal class GeneralMethod
    {
        [DllImport("user32.dll")]
        private static extern bool SendMessage(IntPtr hWnd, Int32 msg, Int32 wParam, Int32 lParam);

        public void ChangeProgressBarColor(ProgressBar pb)
        {
            //SendMessage(pb.Handle, 1040, fore, 0);
        }

        internal static void Time(object? obj)
        {
            ((Label)obj).Invoke(new Action(() => {

                ((Label)obj).Text = DateTime.Now.ToLocalTime().ToString();

            }));
        }
    }
}
